<materialsextension name="Underwater palette 8.00" author="Sadza" description="This extension adds underwater doodad palette" client="8.00">
	<border id="58900"> <!-- underwater border -->
		<borderitem edge="n"   item="5427"/>
		<borderitem edge="e"   item="5429"/>
		<borderitem edge="s"   item="5428"/>
		<borderitem edge="w"   item="5430"/>
		<borderitem edge="cnw" item="5437"/>
		<borderitem edge="cne" item="5438"/>
		<borderitem edge="csw" item="5436"/>
		<borderitem edge="cse" item="5435"/>
		<borderitem edge="dnw" item="5434"/>
		<borderitem edge="dne" item="5433"/>
		<borderitem edge="dsw" item="5432"/>
		<borderitem edge="dse" item="5431"/>
	</border>

	<brush name="Shallow water" type="border" server_lookid="5410" z-order="3000">
		<item id="5405" chance="25"/>
		<item id="5406" chance="25"/>
		<item id="5407" chance="25"/>
		<item id="5408" chance="25"/>
		<item id="5409" chance="25"/>
		<item id="5410" chance="25"/>

		<border align="outer" id="58900"/>
	</brush>

	<brush name="steering wheel" type="doodad" server_lookid="5441" draggable="true" on_blocking="true" thickness="100/100">
		<alternate> <!-- south -->
			<composite chance="10">
				<tile x="0" y="0"> <item id="5426"/> </tile>
				<tile x="1" y="0"> <item id="5439"/> </tile>
			</composite>
		</alternate>
		<alternate> <!-- east -->
			<composite chance="10">
				<tile x="0" y="0"> <item id="5440"/> </tile>
				<tile x="0" y="1"> <item id="5441"/> </tile>
			</composite>
		</alternate>
	</brush>

	<brush name="damaged mast2" type="table" server_lookid="5445">
		<table align="north"> <item id="5445" chance="10"/> </table>
		<table align="vertical"> <item id="5445" chance="10"/> </table>
		<table align="south"> <item id="5445" chance="10"/> </table>
		<table align="west"> <item id="5446" chance="10"/> </table>
		<table align="horizontal"> <item id="5446" chance="10"/> </table>
		<table align="east"> <item id="5446" chance="10"/> </table>
		<table align="alone"> <item id="5446" chance="10"/> </table>
	</brush>

	<tileset name="Nature">
		<terrain>
			<brush name="Shallow water"/>
		</terrain>
	</tileset>

	<brush name="water wooden flooring" type="border" server_lookid="5743" z-order="1">
		<item id="5743" chance="100"/>
	</brush>

	<brush name="coral reef" type="doodad" server_lookid="5413" draggable="true" on_blocking="false" thickness="12/100">
		<item id="5413" chance="10"/>
		<item id="5414" chance="10"/>
		<item id="5415" chance="10"/>
		<item id="5416" chance="10"/>
		<item id="5422" chance="10"/>
		<item id="5423" chance="10"/>
	</brush>

	<brush name="fishbone" type="doodad" server_lookid="2226" draggable="true" on_blocking="false" thickness="12/100">
	    <item id="2226" chance="20"/>
	    <item id="2240" chance="20"/>
	</brush>

	<brush name="bubbles" type="doodad" server_lookid="5419" draggable="true" on_blocking="false" thickness="12/100">
	    <item id="5419" chance="20"/>
	    <item id="5420" chance="20"/>
	</brush>

	<brush name="sea details" type="doodad" server_lookid="5417" draggable="true" on_blocking="false" thickness="12/100">
	    <item id="5417" chance="20"/>
	    <item id="5418" chance="20"/>
	    <item id="5554" chance="20"/>
	    <item id="5679" chance="20"/>
	    <item id="5680" chance="20"/>
	    <item id="5681" chance="20"/>
	    <item id="5682" chance="20"/>
	</brush>

	<brush name="sea rocks" type="doodad" server_lookid="5411" draggable="true" on_blocking="false" thickness="12/100">
	    <item id="5411" chance="20"/>
	    <item id="5412" chance="20"/>
	</brush>

	<brush name="damaged mast" type="doodad" server_lookid="5442" draggable="true" on_blocking="true" thickness="10/10">
		<alternate> <item id="5442" chance="30"/> </alternate> <!-- south -->
		<alternate> <item id="5443" chance="30"/> </alternate> <!-- east -->
	</brush>

	<brush name="damaged ship" type="wall" server_lookid="5452">
		<wall type="horizontal">
			<item id="5452" chance="1"/>
			<item id="5452" chance="0"/>
			<item id="5452" chance="0"/>
		</wall>
		<wall type="vertical">
			<item id="5450" chance="1"/>
			<item id="5450" chance="0"/>
			<item id="5450" chance="0"/>
		</wall>
		<wall type="corner">
			<item id="5453" chance="1"/>
			<item id="5453" chance="0"/> <!-- This needs to be here for backwards compatibility -->
			<item id="5453" chance="0"/> <!-- This needs to be here for backwards compatibility -->
			<item id="5453" chance="0"/>
		</wall>
		<wall type="pole">
			<item id="5003" chance="1"/>
		</wall>
	</brush>

	<brush name="ship railling" type="wall" server_lookid="5454">
		<wall type="horizontal">
			<item id="5454" chance="1"/>
			<item id="5454" chance="0"/>
			<item id="5454" chance="0"/>
		</wall>
		<wall type="vertical">
			<item id="5455" chance="1"/>
			<item id="5455" chance="0"/>
			<item id="5455" chance="0"/>
		</wall>
		<wall type="corner">
			<item id="4932" chance="1"/>
			<item id="4932" chance="0"/> <!-- This needs to be here for backwards compatibility -->
			<item id="4932" chance="0"/> <!-- This needs to be here for backwards compatibility -->
			<item id="4932" chance="0"/>
		</wall>
		<wall type="pole">
			<item id="5002" chance="1"/>
		</wall>
	</brush>

	<brush name="ship ruins" type="doodad" server_lookid="5448" draggable="true" on_blocking="false" thickness="12/100">
	    <item id="5448" chance="20"/>
	    <item id="5444" chance="20"/>
	    <item id="5447" chance="20"/>
	    <item id="5449" chance="20"/>
	    <item id="5451" chance="20"/>
	</brush>

	<tileset name="Underwater">
	    <doodad>
	        <brush name="Shallow water"/>
	        <brush name="earth"/>
	        <brush name="water wooden flooring"/>
	        <brush name="coral reef"/>
	        <brush name="fishbone"/>
	        <brush name="bubbles"/>
	        <brush name="sea details"/>
	        <brush name="sea rocks"/>
	        <item id="5421"/>
	        <item id="5460"/>
	        <brush name="small rocks"/>
	        <brush name="rough brown rubble"/>
	        <brush name="mud cave rocks"/>
	        <brush name="stone cave rocks"/>
	        <brush name="steering wheel"/>
	        <brush name="damaged ship"/>
	        <brush name="ship railling"/>
	        <brush name="damaged mast"/>
	        <brush name="damaged mast2"/>
	        <brush name="ship ruins"/>
	    </doodad>
	</tileset>
</materialsextension>
